/*
 * @Author: 黎明 3111345436@qq.com
 * @Date: 2023-01-10 23:48:13
 * @LastEditors: Andy
 * @LastEditTime: 2023-01-18 09:02:38
 * @FilePath: \cain-ui\script\script.ts
 * @Description: 这里是CainUi注册配置
 */
import { createCainUiOption } from "../utils/Dto/createCainUiOption.Dto";
import "../styles/globalColor.scss";
import { App } from "vue";

import CainUi from "./cain";

const install = CainUi.install;

let option = {};

CainUi.install = (vue: App, args: any) => {
  install.call(CainUi, vue, {
    ...option,
    ...args,
  });
};
const createCainUi = (arg: createCainUiOption) => {
  option = arg;
  return CainUi;
};
export { createCainUi };
export default createCainUi;
export type { createCainUiOption };
